package com.lby.service.impl;

import com.lby.domain.SsmUser;
import com.lby.mapper.SsmMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lby.service.SsmService;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

@Service("ssmService")
public class SsmServiceImpl implements SsmService {

    @Autowired
        private SsmMapper ssmMapper;

    @Override
    public void insertUser(SsmUser ssmUser) {
        ssmMapper.insertUser(ssmUser);
    }

    @Override
    public List<SsmUser> selectSsmUser() {
        return ssmMapper.selectSsmUser();
    }
}
